cmake_minimum_required( VERSION 2.8 )
project( cpp_language_learning )
set( CMAKE_BUILD_TYPE "Debug" )
set( CMAKE_CXX_FLAGS "-std=c++11" )
set( CMAKE_CXX_COMPILER "g++" )

set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)
set(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/lib)

link_directories(${PROJECT_SOURCE_DIR}/lib)
include_directories(${PROJECT_SOURCE_DIR}/include)


set(EXTERN_LIBS glog)

# 08-OperaterOverloading
add_library(OverLoadingArray 08-OperaterOverloading/P431-OverLoadingArray/OverLoadingArray.cpp)
add_executable( test_Array 08-OperaterOverloading/P431-OverLoadingArray/test_Array.cpp)
target_link_libraries( test_Array OverLoadingArray ${EXTERN_LIBS})
